//
//  ViewController.m
//  根据Label滑动切换颜色
//
//  Created by user on 16/8/24.
//  Copyright © 2016年 520it.com. All rights reserved.
//

#import "ViewController.h"
#import "JRZslideLabel.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSArray *titleArr = @[@"1",@"2",@"3",@"4",@"5",@"6",@"7",@"8",@"9",@"10"];
    
    CGFloat x = 0;
    
    CGFloat y = 0;
    
    CGFloat w = [UIScreen mainScreen].bounds.size.width;
    
    CGFloat h = [UIScreen mainScreen].bounds.size.height - y;
    
    JRZslideLabel *zhangge = [[JRZslideLabel alloc]initWithFrame:CGRectMake(x, y, w, h) andTitleArr:titleArr];
    
    zhangge.backgroundColor = [UIColor greenColor];
    
    [self.view addSubview:zhangge];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
